package com.example.backend.service;

import com.example.backend.entity.Driver;

import java.util.List;

public interface DriverService {
    //添加
    Driver save(Driver driver);

    //全体查询
    List<Driver> findAll();

    //查询

    List<Driver> findByName(String name);
    List<Driver> findByIdentity(String identity);
    List<Driver> findByAge(Integer age);
    List<Driver> findByAddress(String address);
    List<Driver> findByPhone(String phone);
    List<Driver> findByLicense(String license);
    List<Driver> findByState(String state);
    List<Driver> findById(Integer id);

    boolean findName(String name);
    boolean findNameAndId(Integer id,String name);

    //删除
    void delete (Integer id);

    //修改
    Driver update(Driver driver);
}
